#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

void dayin(int x)
{
	if (x >= 10)
	{
		dayin(x / 10);
	}
	printf("%d ", x % 10);
}

int main()
{
	int a = 1345223;
	dayin(a);

	return 0;
}